package com.qiaofang.applet.service.property.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qiaofang.applet.common.base.BaseDomain;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

@Document(collection = "property_property_contact")
@Data
public class PropertyContact extends BaseDomain {
    private String contactId;
    //房源ID，只做存储，核对数据用
    private String businessId;

    // 房源Uuid
    private String propertyUuid;

    private String name;

    private String phone1;

    private String phone2;

    @ApiModelProperty("关联更新 true:已更新关联数据 false:未更新关联数据")
    private Boolean relationUpdate;

    @ApiModelProperty("是否删除")
    private Boolean deleted;

    @ApiModelProperty("最后解析日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date lastSyncDate;
}
